package lab01;

public class Test10 {

    public static void main(String[] args) {
        int i = 1;
        char a = 'A';

        System.out.println();

        for (int line = 1; line <= 4; line++) {
            for (int row = 4 - line; row >= 0; row--) {
                System.out.print(" ");
            }
            for (int line1 = 1; line1 <= line; line1++) {
                System.out.print(a);
                System.out.print(" ");
                a = (char) (a + i);
            }
            System.out.println();
        }

        for (int line = 4; line >= 1; line--) {
            for (int row = line - 4; row <= 0; row++) {
                System.out.print(" ");
            }
            for (int line1 = 1; line1 <= line; line1++) {
                System.out.print(a);
                System.out.print(" ");
                a = (char) (a + i);
            }
            System.out.println();
        }
    }
}
